package com.bzframework.network;

import com.bzframework.core.dict.Dict;
import com.bzframework.core.dict.EnumDict;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 网络组件类型
 */
@Getter
@AllArgsConstructor
@Dict("network-type")
public enum DefaultNetworkType implements NetworkType, EnumDict<String> {

    TCP_SERVER("TCP服务"),

    MQTT_SERVER("MQTT服务"),

    WEBSOCKET_SERVER("WebSocket服务"),

    UDP("UDP服务");

    private final String text;

    @Override
    public String getId() {
        return name();
    }

    @Override
    public String getValue() {
        return name();
    }
}
